package 多线程.复习.创建线程的方法;

public class ExtendThread  extends Thread{
    @Override
    public void run() {
            System.out.println("子线程");
            System.out.println("子线程");
            System.out.println("子线程");
            System.out.println("子线程");
    }
}
class MyThread {
    public static void main(String[] args) {
        ExtendThread t1 = new ExtendThread();
        t1.start();
        System.out.println("主线程的方法");
    }
}
